﻿using MangoMes.Commont.DTOs;
using MediatR;
using System.ComponentModel.DataAnnotations;

namespace MangoMes.Write.API.Applications.ProductionWrite
{
    public class ProductionCreateCommand : IRequest<ResultsDTO>
    {
        /// <summary>
        /// 主键
        /// </summary>
        public int ProductionWorkId { get; set; }
        /// <summary>
        /// 生产报工编号
        /// </summary>
        public string ProductionWorkNo { get; set; }
        /// <summary>
        /// 报工类型主键
        /// </summary>
        public int ProductionTypeId { get; set; }
        /// <summary>
        /// 生产工单主键
        /// </summary>
        public int ProductionWorkOrdersID { get; set; }
        /// <summary>
        /// 生产任务编号
        /// </summary>
        public string PickingNode { get; set; }
        /// <summary>
        /// 报工数量
        /// </summary>
        public int ProductionWorkNum { get; set; }
        /// <summary>
        /// 报工部门主键
        /// </summary>
        public int departmentId { get; set; }
        /// <summary>
        /// 报工时间
        /// </summary>
        public DateTime ProductionWorkTime { get; set; } = DateTime.Now;
        /// <summary>
        /// 状态
        /// </summary>
        public int ProductionStart { get; set; }//0草稿,1审批中，2已完成
        /// <summary>
        /// 备注
        /// </summary>
        public string ProductionWorkRemark { get; set; }
        /// <summary>
        /// 逻辑删除状态
        /// </summary>
        public int ProductionWorkState { get; set; }
    }
}
